﻿using DigitalHealth.PACS.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace DigitalHealth.PACS.ChatWebSocket.Services
{
    public interface IChatMessageRepository
    {
        void Create(ChatMessage chatMessage);
        void Update(ChatMessage chatMessage);
        void Delete(ChatMessage chatMessage);
        IEnumerable<ChatMessage> GetChatMessages();
        ChatMessage GetChatMessageById(string id);
        IEnumerable<ChatMessage> GetChatMessagesByReceiverUser(User user);
        IEnumerable<ChatMessage> GetNotReadChatMessagesByReceiverUser(User user);
        bool ChatMessageExists(string id);
    }
}
